//
//  AlcrossRecommendCell.swift
//  u17Comic
//
//  Created by uniqhj on 2019/7/9.
//  Copyright © 2019 hujian. All rights reserved.
//

import UIKit


class AlcrossRecommendCell: UICollectionViewCell {
    @IBOutlet weak var picImage: UIImageView!
    @IBOutlet weak var mainTitleLabel: UILabel!
    @IBOutlet weak var subTitleLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    var model: Items? {
        didSet {
            guard let model = model else { return }
            picImage.kf.setImage(with: URL(string : model.cover!))
//            mainTitleLabel.text = model.name ?? model.title
            mainTitleLabel.text = model.title
//            subTitleLabel.text = model.subTitle ?? "更新至\(model.content ?? "0")集"
            subTitleLabel.text = model.subTitle 
        }
    }
}
